package com.flyee.controller.timer{
	
	import com.flyee.model.Charactor;
	
	import flash.events.TimerEvent;
	import flash.utils.Timer;

	public class MasterCooldownTimer extends Timer{
		
		private var player : Charactor;
		
		public function MasterCooldownTimer(p : Charactor){			
			super(1500, 1);
			player = p;
//			this.addEventListener(TimerEvent.TIMER, timeHandler);
			this.addEventListener(TimerEvent.TIMER_COMPLETE, completeHandler);
		}
		
		public override function start() : void {
			player.cooldown = false;
			super.start();
		} 
		
		private function timeHandler(event : TimerEvent) : void {
		
		}
		
		private function completeHandler(event : TimerEvent) : void {
			player.cooldown = true;
		}
		
	}
}